package jw.free.org.ansiblespringexample1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SuppressWarnings ("unused")
public class WebController
{
	@Value ("${config.value}")
	protected String value ;

	@Value ("${config.host}")
	protected String host ;

	@GetMapping ("/info")
	@SuppressWarnings ("unused")
	public String info ()
	{
		return "config: value=" + value + ", host=" + host ;
	}

}
